import request from '../index';

/**
 * @description: get current language
 * @param {*} parameter
 * @return {*}
 */
export function getLanguage() {
    return request({
        url: '/api/system/language',
        method: 'get'
    });
}

/**
 * @description:set current language
 * @param {*} params
 * @return {*}
 */
export function setLanguage(params) {
    return request({
        url: '/api/system/language',
        method: 'post',
        data: {
            "lang":params
        }
    });
}
